package com.lx.lxsql.entity;

public class Field {
    private String fieldName;
    private SIType type;
    private long len1;
    private long len2;
    private boolean notNull;
    private String defaultStr;
    private String comment;

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public SIType getType() {
        return type;
    }

    public void setType(SIType type) {
        this.type = type;
    }

    public boolean isNotNull() {
        return notNull;
    }

    public void setNotNull(boolean notNull) {
        this.notNull = notNull;
    }

    public String getDefaultStr() {
        return defaultStr;
    }

    public void setDefaultStr(String defaultStr) {
        this.defaultStr = defaultStr;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public long getLen1() {
        return len1;
    }

    public void setLen1(long len1) {
        this.len1 = len1;
    }

    public long getLen2() {
        return len2;
    }

    public void setLen2(long len2) {
        this.len2 = len2;
    }

    @Override
    public String toString() {
        return "{" +
                "fieldName='" + fieldName + '\'' +
                ", type=" + type +
                ", len1=" + len1 +
                ", len2=" + len2 +
                ", notNull=" + notNull +
                ", defaultStr='" + defaultStr + '\'' +
                ", comment='" + comment + '\'' +
                '}';
    }
}
